<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface ModulesDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Modules 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param module primary key
 	 */
	public function delete($module_id);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Modules module
 	 */
	public function insert($module);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Modules module
 	 */
	public function update($module);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByModuleName($value);

	public function queryBySequence($value);

	public function queryByParentModuleId($value);

	public function queryByFileName($value);

	public function queryByStatus($value);

	public function queryByCreatedDate($value);

	public function queryByUpdatedDate($value);


	public function deleteByModuleName($value);

	public function deleteBySequence($value);

	public function deleteByParentModuleId($value);

	public function deleteByFileName($value);

	public function deleteByStatus($value);

	public function deleteByCreatedDate($value);

	public function deleteByUpdatedDate($value);


}
?>